using System;
using System.Net.DnsToolkit.Packet.Records;

namespace System.Net.DnsToolkit.Packet.Busy.Records
{
    /*
     3.3.12. PTR RDATA format

        +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
        /                   PTRDNAME                    /
        +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

    where:

    PTRDNAME        A <domain-name> which points to some location in the
                    domain name space.

    PTR records cause no additional section processing.  These RRs are used
    in special domains to point to some other location in the domain space.
    These records are simple data, and don't imply any special processing
    similar to that performed by CNAME, which identifies aliases.  See the
    description of the In-ADDR.ARPA domain for an example.
     */
    public class RecordPTR : IRecord, IRecordPTR
	{

        public IDomainName PTRDNAME { get; set; }

        public QTypeEnum QType {
            get {
                return QTypeEnum.PTR;
            }
        }
        
        public override string ToString() {
			return PTRDNAME == null ? string.Empty : PTRDNAME.ToString();
		}

	}
}
